<%@ page import="com.chen.entity.FlightEntity" %><%--
  Created by IntelliJ IDEA.
  User: Lenovo
  Date: 2024/10/12
  Time: 19:10
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String phone = request.getParameter("phone");
%>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>德先生去旅行</title>
    <style>
        body {
            font-family: 'Arial', sans-serif;
            background-color: #f7f7f7;
            margin: 0;
            padding: 20px;
        }
        .container {
            background-color: #fff;
            max-width: 600px;
            margin: 30px auto;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }
        h1 {
            text-align: center;
            color: #333;
        }
        form {
            display: flex;
            flex-direction: column;
        }
        label {
            margin-top: 10px;
            margin-bottom: 5px;
            color: #666;
        }
        input[type="text"], input[type="submit"] {
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 16px;
        }
        input[type="submit"] {
            background-color: #5cb85c;
            color: white;
            border: none;
            cursor: pointer;
            margin-top: 20px;
        }
        input[type="submit"]:hover {
            background-color: #4cae4c;
        }
    </style>
</head>
<body>
<div class="container">
    <h1>修改航班信息</h1>
    <form action="updateFlight?phone=<%=phone%>" method="post">
        <input type="hidden" value="${f.id}" name="id">
        <label>航班号: <input type="text" value="${f.flightId}" name="flightId"></label><br>
        <label>航空公司: <input type="text" value="${f.company}" name="company"></label><br>
        <label>出发机场: <input type="text" value="${f.departureAirport}" name="departureAirport"></label><br>
        <label>到达机场: <input type="text" value="${f.arriveAirport}" name="arriveAirport"></label><br>
        <label>出发时间: <input type="text" value="${f.departureTime}" name="departureTime"></label><br>
        <label>到达时间: <input type="text" value="${f.arriveTime}" name="arriveTime"></label><br>
        <label>机型: <input type="text" value="${f.model}" name="model"></label><br>
        <label>费用: <input type="text" value="${f.cost}" name="cost"></label><br>
        <input type="submit" value="提交">
    </form>
</div>
</body>
</html>